package org.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.example.springboot.common.entity.BaseEntity;

/**
 * 灌溉日志
 *
 * @author Fz
 * @since 1.0.0 2024-02-26
 */
@EqualsAndHashCode(callSuper = false)
@Data
@TableName("irrigation_log")
public class IrrigationLog extends BaseEntity {

    @Column(name = "user_id", comment = "用户ID,可为空")
    private Long userId;

    /**
     * 类型
     */
    @Column(name = "operation_type", comment = "类型 01:一般日志  02:预警日志")
    private String operationType;

    /**
     * 预警代码
     */
    @Column(name = "warning_codes", comment = "预警代码")
    private String warningCodes;

    /**
     * 操作的详细描述
     */
    @Column(name = "operation_detail", comment = "操作的详细描述", type = MySqlTypeConstant.TEXT)
    private String operationDetail;

    /**
     * 设备编码
     */
    @Column(name = "device_no", comment = "设备编码")
    private String deviceNo;

}